from moodlefuse.files import Directory
from moodlefuse.modules.assignments.files import Assignments
from moodlefuse.modules.resources.files import Resources
from moodlefuse.modules.forums.files import Forums

class Course(Directory):

    def load_files(self):
        self.files['Forumi']            = Forums(self.api, 'Forumi', self.url)
        self.files['Naloge']            = Assignments(self.api, 'Naloge', self.url)
        self.files['Viri in gradiva']   = Resources(self.api, 'Viri in gradiva', self.url)

class Courses(Directory):

    def load_files(self):
        self.files = self.api.get_courses()
  